package com.moter.demo01.io.in_outputstream.filestream;

import java.io.*;

public class FileInputStreamDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream inputStream = new FileInputStream("src\\main\\java\\com\\moter\\demo01\\io\\123.txt");
//        byte[] a =new  byte[1024];
//        inputStream.read(a);
//        System.out.println(new String(a));
        System.out.println(inputStream.getChannel().size());
        int b;
        while((b=inputStream.read())!=-1){
            System.out.print((char)b);
        }
    }
}
